package com.auth.sdk.auth;

import org.springframework.core.annotation.AliasFor;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * Roles
 *
 * @description: 校验角色
 * @author: cyj
 * @date 2021 -12-23 10:36:24
 *
 *
 */
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
public @interface Roles {

    /**
     * And string [ ] 并
     *
     * @return the string [ ]
     */
    @AliasFor("or")
    String[] and() default {};

    /**
     * Or string [ ] 或
     *
     * @return the string [ ]
     */
    @AliasFor("and")
    String[] or() default {};

}
